<%--@elvariable id="ash" type="com.infitecs.eyas.quality.model.Ash"--%>
<%--
  Created by IntelliJ IDEA.
  User: chenkaiyu
  Date: 15-4-18
  Time: 上午10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
    <script src="<c:url value="/js/quality/grey1.js"/>" type="text/javascript"></script>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <form action="#" class="horizontal-form">
                                <div class="col-md-12">
                                    <h3 class="page-title" style="margin-bottom: 30px;font-size: 20px;color:darkgreen;">
                                        灰分析
                                    </h3>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">二氧化硅SiO₂</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="sio2" name="sio2" value="${ash==null?"":ash.sio2Show}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">三氧化二铝Al₂O₃</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="al2o3" name="al2o3" value="${ash==null?"":ash.al2o3Show}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">三氧化二铁Fe₂O₃</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="fe2o3" name="fe2o3" value="${ash==null?"":ash.fe2o3Show}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">氧化钙CaO</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="cao" name="cao" value="${ash==null?"":ash.caoShow}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">二氧化钛TiO₂</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="tio2" name="tio2" value="${ash==null?"":ash.tio2Show}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">氧化镁MgO</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="mgo" name="mgo" value="${ash==null?"":ash.mgoShow}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">三氧化硫SO₃</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="so3" name="so3" value="${ash==null?"":ash.so3Show}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">氧化钾K₂O</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="k2o" name="k2o" value="${ash==null?"":ash.k2oShow}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">氧化钠Na₂O</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="na2o" name="na2o"  value="${ash==null?"":ash.na2oShow}">
                                                            <span class="help-inline">
                                                            % </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-6" style="margin-right: -8px;">
                                            <div class="form-group">
                                                <label class="<c:if test="${ash!=null&&operateField.otherState=='1'}">aTypeStyle </c:if> control-label col-md-2" id="otherLabel"
                                                       style="padding-left: 0px; padding-right: 0px;">其他</label>

                                                <div class="col-md-6">
                                                    <input type="text" class="form-control input-inline"
                                                           id="other" name="other"  value="${ash==null?"":ash.otherShow}"
                                                            <c:if test="${ash==null||operateField.otherState=='0'}">
                                                              readonly
                                                           </c:if>
                                                            >
														<span class="help-inline">
														%</span>
                                                    <input type="checkbox"  id="otherState" name="otherState"
                                                            <c:if test="${ash!=null&&operateField.otherState=='1'}">
                                                              checked
                                                           </c:if>
                                                            >
                                                </div>
                                                <div class="col-md-3">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="control-label col-md-2"
                                                       style="padding-left: 0px; padding-right: 0px;">合计</label>

                                                <div class="col-md-6">
                                                    <input type="text" class="form-control input-inline" id="total" name="total"
                                                           value="${ash==null?"":ash.totalShow}"     readonly>
                                                  	   <span class="help-inline">
														%</span>
                                                </div>
                                                <div class="col-md-3">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <h3 class="page-title" style="margin-bottom: 30px;font-size: 20px;color:darkgreen;">
                                        灰熔点
                                    </h3>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">变形温度DT</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="dt" name="dt" value="${ash==null?"":ash.dtShow}">
                                                            <span class="help-inline">
                                                            ℃ </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">软化温度ST</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="st" name="st" value="${ash==null?"":ash.stShow}">
                                                            <span class="help-inline">
                                                            ℃ </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">半球温度HT</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="ht" name="ht" value="${ash==null?"":ash.htShow}">
                                                            <span class="help-inline">
                                                            ℃ </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">流动温度FT</label>

                                                <div class="col-md-9">
                                                    <input type="text" class="form-control input-inline"
                                                           id="ft" name="ft" value="${ash==null?"":ash.ftShow}">
                                                            <span class="help-inline">
                                                            ℃</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <h3 class="page-title" style="margin-bottom: 30px;font-size: 20px;color:darkgreen;">
                                        结渣判断
                                    </h3>
                                </div>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-6" style="margin-right: -8px;">
                                            <div class="form-group">
                                                <label class="control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">结渣特性判断Rt</label>

                                                <div class="col-md-6">
                                                    <input type="text" class="form-control input-inline"
                                                           id="rt" name="rt" readonly value="${ash==null?"":ash.rtShow}">
														<span class="help-inline">
														℃</span>
                                                </div>
                                                <div class="col-md-3">
                                                    <%--<button class="btn green" type="button" id="computer2">计算</button>--%>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-5">
                                            <div class="form-group">
                                                <label class="control-label col-md-3"
                                                       style="padding-left: 0px; padding-right: 0px;">结焦指数Rz</label>

                                                <div class="col-md-6">
                                                    <input type="text" class="form-control input-inline"
                                                           id="rz" name="rz" readonly value="${ash==null?"":ash.r2Show}">
                                                </div>
                                                <div class="col-md-3">
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="form-group">
                                        <div class="form-body">
                                            <div class="row">
                                                <div class="col-md-5">
                                                 </div>
                                                 <div class="col-md-7">
                                                     <button type="button" class="btn green" id="save" onclick="grey.ashSave()">确定</button>
                                                     <button type="button" class="btn green" id="nextPage" onclick="grey.ashNext()">下一页</button>
                                                 </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="row" id="resultDiv" style="min-height: 50px">
                                        <div class="col-md-8 col-md-offset-1">
                                            <ul id="result">
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" id="caseId" value="${caseId}" name="caseId">
    <input type="hidden" id="addFlag" value="${ash==null?"add":"edit"}" name="addFlag">
</div>


<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/DataTables/media/js/jquery.dataTables.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.core-3.5.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.excheck-3.5.min.js"/>"></script>
<script>
    $(document).ready(function () {
        var caseId = $("#caseId").val();
        var step='<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == ""||step!="") {
            var obj=getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }
        grey.init();
    })
</script>

<script type="text/javascript">
    $(function () {
        <%
        String message = (String) request.getAttribute("message");
        if(message!=null&&!"".equals(message)){
        if(message.equals("success")){
        %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
       %>
    });
</script>
</body>
</html>